home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 3
/
Cream of the Crop 3.iso
/
clipper
/
ks94an.zip
/
LONGSECS.HDR
< prev
next >
Wrap
Text File
|
1994-04-25
|
1KB
|
38 lines
/******************************************************************************
The Klipper Library, for CA-Clipper 5.x
Copyright (c), 1994, Wallace Information Systems Engineering
FUNCTION:
_LongSeconds() --> nSeconds
PARAMETERS:
None
SHORT:
Return seconds since 01/01/80, rather than from midnight of current day.
DESCRIPTION:
_LongSeconds() is similar to Clipper's seconds() function, but returns
the number of seconds since 0000 hours on 01/01/80. It therefore does
not reset to ZERO at midnight, but continues to accumulate time constantly.
NOTE:
The time necessary to calculate the _LongSeconds() return value is obviously
longer than Clipper's simple seconds() function. The function requires, on
my 486/33, 1320 repetitions to lose one second, however, since the
calculation is done from scratch each time, the actual time difference is
only several thousandths of a second (1/1320th of a second in my case). The
value should never, in any case, become significant (no more than seconds()
itself).
EXAMPLE:
? _LongSeconds() // 441989015.23
******************************************************************************/